package com.example.itcompanyinterview.object;

import com.example.itcompanyinterview.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class RoleListViewCache {
	private View baseView;
	
	private TextView titleView;
	private ImageView imageView;
	
	public RoleListViewCache(View baseView) {
		this.baseView = baseView;
	}
	
	public TextView getRoleTitle() {
		if(this.titleView == null) {
			this.titleView = (TextView)baseView.findViewById(R.id.role_title);
		}
		return this.titleView;
	}
	
	public ImageView getRoleLogo() {
		if(this.imageView == null) {
			this.imageView = (ImageView)baseView.findViewById(R.id.role_image);
		}
		return this.imageView;
	}
}
